package com.mc.sigleton;

public class SynSingleton {
	private static volatile SynSingleton instance;
	private SynSingleton(){
		
	}
	public static SynSingleton getInstance(){
		if(instance==null){
			synchronized(SynSingleton.class){
				if(instance==null)
					instance = new SynSingleton();
			}
		}
		return instance;
	}
}
